//
//  DataModel.swift
//  CodingTest
//
//  Created by LYPC on 2021/11/19.
//

import Foundation
import HandyJSON

public enum ListType: String, HandyJSONEnum {
    case text = "text"
    case img = "img"
    case text_img = "text-img"
    case text_link = "text-link"
}

/// 列表数据模型
public class DataModel: HandyJSON {
    /// 列表id
    public var id = 0
    /// 列表类型
    public var type = ListType.text
    /// 文字内容
    public var content = ""
    /// 列表图片数组
    public var imgUrls = [String]()
    /// 列表链接
    public var link = ""
    
    /// 存frame
    /// maxline 3
    public var contentLHeight:CGFloat = 0.0
    public var cellHeight:CGFloat = 0.0
    /// content高
    public var contentLHeight_detail:CGFloat = 0.0
    
    public required init() { }
}
